package com.imti.mall.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.mall.model.pms.pojo.PmsProductCategoryAttributeRelation;
import com.imti.mall.product.dao.PmsProductCategoryAttributeRelationDao;
import com.imti.mall.product.service.PmsProductCategoryAttributeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: PmsProductCategoryAttributeRelationServiceImpl
 * Description:
 * date: 2022/9/19 10:22
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
@Service
public class PmsProductCategoryAttributeRelationServiceImpl extends ServiceImpl<PmsProductCategoryAttributeRelationDao, PmsProductCategoryAttributeRelation> implements PmsProductCategoryAttributeRelationService {


    @Autowired
    private PmsProductCategoryAttributeRelationDao pmsProductCategoryAttributeRelationDao;
    @Override
    public boolean addPmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation) {
        return save(pmsProductCategoryAttributeRelation);
    }

    @Override
    public boolean updatePmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation) {
        return pmsProductCategoryAttributeRelationDao.updatePmsProductCategoryAttributeRelation(pmsProductCategoryAttributeRelation);
    }

    @Override
    public boolean deletePmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation) {
        return removeById(pmsProductCategoryAttributeRelation);
    }

    @Override
    public List<PmsProductCategoryAttributeRelation> findPmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation) {
        return pmsProductCategoryAttributeRelationDao.findPmsProductCategoryAttributeRelation(pmsProductCategoryAttributeRelation);
    }
}
